Volume Tasks

This section describes the following volume tasks:

Creating a Volume

To create a volume, use the volume new command. When you create a volume, you must specify, at a minimum, the virtual server on which the volume is to be located, the volume name, and the storage aggregate that is to hold the volume.

You can optionally specify additional information when the volume is created, including its state, the export ruleset that applies to it, its user and group ID, its security style (UNIX mode bits, CIFS ACLs, or mixed NFS and CIFS permissions), the default UNIX permissions for files located on it, its mount path, and its size and space-guarantee style. Some attributes can be specified only at the advanced privilege level and higher. For a complete list of possible attributes, see the reference page for the command.

The following example creates a new volume named dept_eng on a virtual server named vs1 and a storage aggregate named aggr2. The volume is initially in the online state. It uses the export rule set named default_ruleset. The owner of the volume's root is a user named george whose primary group is named eng. The volume's junction is /dept/eng. The volume is 750 GB in size, and space for the entire volume is guaranteed on the aggregate.

node::> volume new -vserver vs1 -volume dept_eng
-aggregate aggr2 -state online -ruleset default_ruleset -user george
-group eng -junction-path /dept/eng -size 750g -space-guarantee volume